#include "sComponentCheckbox.h"
#include "sCICheckbox.h"
#include "sGUI.h"

namespace sgui
{
namespace res
{

const std::wstring sComponentCheckbox::COMPONENT_NAME = L"CHECKBOX";

inst::sComponentInstance* sComponentCheckbox::getInstance(sGUI& gui, const res::sComponentObject& object, inst::sComponentInstance* parent)
{
	return new inst::sComponentInstanceCheckbox(gui, object, parent);
}
    
const std::wstring sComponentCheckbox::getClass() const
{
	return COMPONENT_NAME;
}
   
void sComponentCheckbox::fillRequredRects()
{
    sComponentButton::fillRequredRects();
    registerRequiredComponentRect(sComponentRect::COMPONENT_RECT_FRAME);
}

sComponentCheckbox::sComponentCheckbox(sGUI& gui, const std::wstring& name) :
	sComponentButton(gui, name)
{
	//
}

sComponentCheckbox::~sComponentCheckbox()
{
	//
}

};
};